/*
 * i2c-decoder.h
 *
 *  Created on: 2024年4月11日
 *      Author: NI
 */

#ifndef I2C_PLATFROM_I2C_DECODER_H_
#define I2C_PLATFROM_I2C_DECODER_H_

#include <stdint.h>

extern int i2c_decoder_init(char * path, uint8_t addr);
extern int i2c_decoder_deinit();
extern int i2c_decoder_set_speed(uint32_t speed);
extern int i2c_decoder_rd(uint8_t reg, uint8_t * data);
extern int i2c_decoder_wr(uint8_t reg, uint8_t value);
extern int i2c_decoder_dump(uint8_t reg, uint8_t * data, uint32_t len);

#endif /* I2C_PLATFROM_I2C_DECODER_H_ */
